package com.atguigu.spring6iocxml.ditest;

import java.util.Arrays;

public class Emp {

    public String name;
    public Integer age;
    public Dept dept;
    public String[] loves;

    public String[] getLoves() {
        return loves;
    }

    public void setLoves(String[] loves) {
        this.loves = loves;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public void work () {
        System.out.println(this.name +  "emp work...");
        this.dept.info();
        System.out.println("loves:"+ Arrays.toString(loves));
    }
}
